﻿<%@ Page Title="" Language="C#" MasterPageFile="~/template/Admin.Master" AutoEventWireup="true"
    CodeBehind="Album.aspx.cs" Inherits="EmptyWallGallery.FrontEnd.inside.Editor.Products.Album" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            Menus.DisplaySubMenu('menu-1-2');
            Menus.ChangeSelectedMenu('menu-1-2');
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ctphMain" runat="server">
    <div style="float: left; width: 100%;">
        <div id="iconLink" class="icon32">
            <br />
        </div>
        <h2>
            Quản lý tác phẩm</h2>
    </div>

    <div class="form-wrap" style="float: left; width: 98%; margin-right: 20px;">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div class="frmFilter" style="margin: 0px;">
                    <table cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <th colspan="2" style="line-height: 26px;">
                                Thêm mới danh mục
                            </th>
                        </tr>
                        <tr>
                            <td style="width: 130px;">
                                Tên danh mục:
                            </td>
                            <td style="width: 350px;">
                                <asp:TextBox ID="txtAlbumName" runat="server" Width="220"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Mô tả:
                            </td>
                            <td>
                                <asp:TextBox ID="txtDescription" TextMode="MultiLine" Width="320" Height="150" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                                <asp:Button ID="BtnCreate" runat="server" Text="Thêm mới" OnClick="BtnCreateClick" />
                            </td>
                        </tr>
                    </table>
                </div>

                <asp:Repeater ID="RptListAlbum" runat="server">
                    <HeaderTemplate>
                        <div style="margin-top: 50px;color: #000;">
                    </HeaderTemplate>
                    <ItemTemplate>
                        <div class="albumItem">
                            <a href="CreatePhoto.aspx?AlbumId=<%# Eval("AlbumID") %>"><%# Eval("AlbumName") %></a>
                            <div style="border: solid 1px #CCC; width:130px;height: 107px;margin-top:5px;position: relative;">
                                <div style="border: solid 1px #CCC; width:130px;height: 100px;top:3px; left:3px;position: absolute;background-color: #FFF;">
                                    <a href="CreatePhoto.aspx?AlbumId=<%# Eval("AlbumID") %>"><%# WriteAlbumImage(Eval("ImageDefault")) %></a>
                                </div>    
                            </div>
                            <div style="font-size: 11px;margin-top:3px;">
                                <%# Eval("AlbumDesc") %>
                            </div>
                            <div style="font-size: 11px;margin-top: 3px;line-height:16px;">
                                <%# Eval("ViewCount") %> lượt xem - <a href="EditAlbum.aspx?Id=<%# Eval("AlbumID") %>" title="Sửa">Sửa</a> | <a href="DeleteAlbum.aspx?Id=<%# Eval("AlbumID") %>" onclick="return confirm('Bạn có chắc muốn xóa?')" title="Xóa">Xóa</a>
                                <br/>
                                <%# WriteCreateDate(Eval("CreateDate").ToString())%>
                            </div>
                        </div>
                    </ItemTemplate>
                    <FooterTemplate>
                        </div>
                    </FooterTemplate>
                </asp:Repeater>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
